<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="container">
		    <div id="top">
				<div id="top_right">
					<span>博客管理系统</span>
				</div>
				<div id="top_left">
					欢迎你：admin <a href="#">退出登录</a>
				</div>
		    </div>
			<div id="left">
				
			</div>
		    <div id="right">
		        <button id="all">全选</button>
		        <a id="multi_delete" href="#">删除选中任务</a>
		
		        <a id="add" href="task_add.php" style="float: right">增加任务</a>
		    </div>
		    <form id="multi-delete-form" action="task_multi_delete.php">
		        <table class="list">
		            <tbody>
		            <tr>
		                <th></th>
		                <th>ID</th>
		                <th>标题</th>
		                <th>任务状态</th>
		                <th>创建时间</th>
		                <th>修改时间</th>
		                <th>操作</th>
		            </tr>
		            <?php foreach ($taskList as $item) : ?>
		            <tr>
		                <td><input type="checkbox" class="task-checkbox" name="TaskId[]" value="<?php echo $item['TaskId'] ?>"></td>
		                <td><?php echo $item['TaskId'] ?></td>
		                <td><?php echo $item['TaskName'] ?></td>
		                <td><?php echo $statusList[$item['TaskStatus']] ?></td>
		                <td><?php echo $item['TaskCreateTime']; ?></td>
		                <td><?php echo $item['TaskUpdateTime']; ?></td>
		                <td>
		                    <a class="detail" href="task_detail.php?id=<?php echo $item['TaskId'] ?>">详情</a>
		                    <?php if ($item['TaskStatus'] == 1): ?>
		                    <a class="delete" href="task_delete.php?id=<?php echo $item['TaskId'] ?>">删除</a>
		                    <?php endif; ?>
		                </td>
		            </tr>
		            <?php endforeach; ?>
		            </tbody>
		        </table>
		    </form>
		</div>
	</body>
</html>
